#if !defined(AFX_SOCKETSERVER_H__33CF29D5_FD4F_4D88_BC52_A348F23DA387__INCLUDED_)
#define AFX_SOCKETSERVER_H__33CF29D5_FD4F_4D88_BC52_A348F23DA387__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SocketServer.h : header file
//
#include <afxtempl.h>
#include "SocketClient.h"

#define	WM_SOCKETACCEPT	(WM_USER+20000)
/////////////////////////////////////////////////////////////////////////////
// CSocketServer command target

class CSocketServer : public CAsyncSocket
{
// Attributes
public:

// Operations
public:
	CSocketServer();
	virtual ~CSocketServer();

// Overrides
public:
	int OnCount();
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSocketServer)
	public:
	virtual void OnAccept(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CSocketServer)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
//	CDialog*	m_pDlg;
	CList<CSocketClient*, CSocketClient*>	m_listSocket;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SOCKETSERVER_H__33CF29D5_FD4F_4D88_BC52_A348F23DA387__INCLUDED_)
